package com.ktgj.customer.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ktgj.customer.mapper.CaseComplaintLiableMapper;
import com.ktgj.customer.domain.CaseComplaintLiable;
import com.ktgj.customer.service.ICaseComplaintLiableService;

/**
 * 投诉工单_投诉解决责任人Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-05-27
 */
@Service
public class CaseComplaintLiableServiceImpl implements ICaseComplaintLiableService 
{
    @Autowired
    private CaseComplaintLiableMapper caseComplaintLiableMapper;

    /**
     * 查询投诉工单_投诉解决责任人
     * 
     * @param complaintResponsibleId 投诉工单_投诉解决责任人ID
     * @return 投诉工单_投诉解决责任人
     */
    @Override
    public CaseComplaintLiable selectCaseComplaintLiableById(Long complaintResponsibleId)
    {
        return caseComplaintLiableMapper.selectCaseComplaintLiableById(complaintResponsibleId);
    }

    /**
     * 查询投诉工单_投诉解决责任人列表
     * 
     * @param caseComplaintLiable 投诉工单_投诉解决责任人
     * @return 投诉工单_投诉解决责任人
     */
    @Override
    public List<CaseComplaintLiable> selectCaseComplaintLiableList(CaseComplaintLiable caseComplaintLiable)
    {
        return caseComplaintLiableMapper.selectCaseComplaintLiableList(caseComplaintLiable);
    }

    /**
     * 新增投诉工单_投诉解决责任人
     * 
     * @param caseComplaintLiable 投诉工单_投诉解决责任人
     * @return 结果
     */
    @Override
    public int insertCaseComplaintLiable(CaseComplaintLiable caseComplaintLiable)
    {
        return caseComplaintLiableMapper.insertCaseComplaintLiable(caseComplaintLiable);
    }

    /**
     * 修改投诉工单_投诉解决责任人
     * 
     * @param caseComplaintLiable 投诉工单_投诉解决责任人
     * @return 结果
     */
    @Override
    public int updateCaseComplaintLiable(CaseComplaintLiable caseComplaintLiable)
    {
        return caseComplaintLiableMapper.updateCaseComplaintLiable(caseComplaintLiable);
    }

    /**
     * 批量删除投诉工单_投诉解决责任人
     * 
     * @param complaintResponsibleIds 需要删除的投诉工单_投诉解决责任人ID
     * @return 结果
     */
    @Override
    public int deleteCaseComplaintLiableByIds(Long[] complaintResponsibleIds)
    {
        return caseComplaintLiableMapper.deleteCaseComplaintLiableByIds(complaintResponsibleIds);
    }

    /**
     * 删除投诉工单_投诉解决责任人信息
     * 
     * @param complaintResponsibleId 投诉工单_投诉解决责任人ID
     * @return 结果
     */
    @Override
    public int deleteCaseComplaintLiableById(Long complaintResponsibleId)
    {
        return caseComplaintLiableMapper.deleteCaseComplaintLiableById(complaintResponsibleId);
    }
}
